﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace VarianceReportWinUI
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        private UIHandler mUiHandler;
        
 

        private void frmMain_Load(object sender, EventArgs e)
        {

            
            mUiHandler = new UIHandler(dpMain);
          
        }

        private void mnuMainShowHideWorkQueue_Click(object sender, EventArgs e)
        {
            mUiHandler.ShowOrHideQueue();

            
        }

        public ToolStripButton ShowHideWorkQueueButton
        {
            get
            {
                return mnuMainShowHideWorkQueue;
            }
        }

        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mUiHandler.workQueue.Save();
        }

        private void mnuMainFileNew_Click(object sender, EventArgs e)
        {
            mUiHandler.NewWorkItem();
        }
        
    }
}
